import { createStore } from "vuex";

const store = createStore({
  state: {
    count: 0,
    name:'你好呀，vuex!'
  },
  mutations: {
    increment: (state) => {
      state.count=state.count+2
      console.log("我是store里的方法")
    }
  },
  action: {

  }
})

export default store